import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
// 引入高德地图与样式
import '@/common/css/mapDome.css'
// 引入UI框架
import ElementUI from 'element-ui';
import '@/common/theme/index.css'
// 引入样式初始化
import '@/common/css/reset.css'
import '@/common/css/index.css'
import '@/common/css/color-theme.css'
import '@/common/font-awesome-4.7.0/css/font-awesome.min.css'
// 引入jsonp-主要用于请求天气
import { VueJsonp } from 'vue-jsonp'
Vue.config.productionTip = false
Vue.use(VueJsonp)
Vue.use(ElementUI);
// 组件的自动注册-插件
import comInstall from '@/plugins/installComponents'
import notify_confirm from '@/plugins/notify_confirm'
Vue.use(comInstall);
Vue.use(notify_confirm);

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    // 全局事件总线
    Vue.prototype.$bus = this;
  }
}).$mount('#app')
